<template>
  <ls-amap-address
    v-bind="item"
    v-model:address="model[item.prop]"
    v-model:longitude="model[item.longitude]"
    v-model:latitude="model[item.latitude]"
    :disabled="global.disabled || item.disabled"
    v-on="item.events || {}"
    @anewValidate="$emit('mapAnewValidate', item.prop)"
  ></ls-amap-address>
  <!-- 
     -->
</template>

<script setup>
defineProps({
  item: Object,
  model: {
    type: Object,
    default: () => {}
  },
  global: {
    type: Object,
    default: () => ({})
  }
})
</script>
